package com.my.coolq.api.request;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * 群消息
 * @author ch
 *
 */
public class GroupMsgRequest {

	/**
	 * 群qq号码
	 */
	private Long group_id;
	/**
	 * 发送的内容
	 * string/array
	 */
	private String message;
	/**
	 * 消息内容是否作为纯文本发送（即不解析 CQ 码），message 数据类型为 array 时无效
	 */
	private Boolean is_raw;
	
	public GroupMsgRequest() {
		super();
	}
	
	

	public GroupMsgRequest(Long group_id, String message) {
		super();
		this.group_id = group_id;
		this.message = message;
	}



	public GroupMsgRequest(Long group_id, String message, Boolean is_raw) {
		super();
		this.group_id = group_id;
		this.message = message;
		this.is_raw = is_raw;
	}

	public Long getGroup_id() {
		return group_id;
	}

	public void setGroup_id(Long group_id) {
		this.group_id = group_id;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Boolean getIs_raw() {
		return is_raw;
	}

	public void setIs_raw(Boolean is_raw) {
		this.is_raw = is_raw;
	}
	
	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}
}
